﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HAOest.QrCodeForWin8.Model
{
    public class CodeTypeComboBoxItem
    {
        private CodeType codeType;
        private string text;

        public string Text
        {
            get
            {
                return text;
            }
            set
            {
                text = value;
            }
        }
        public CodeType CodeType
        {
            get
            {
                return codeType;
            }
            set
            {
                codeType = value;
            }
        }

        public CodeTypeComboBoxItem(CodeType codeType)
        {
            this.codeType = codeType;
            switch (codeType)
            {
                case CodeType.Text:
                    text = Utils.GetStringValue("CodeTypeName_Text");
                    break;
                case CodeType.Tel:
                    text = Utils.GetStringValue("CodeTypeName_Tel");
                    break;
            }
        }
    }
}
